package com.baizhi.mall.service;

import com.baizhi.mall.entity.mysql.Admin;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Service;

@Service
public interface AdminService {
    //分页查询
    PageInfo<Admin> selectByPage(Integer pageNum,Integer pageSize);
    //增
    void insert(Admin admin);
    //删
    void delete(Integer id);
    //改
    void update(Admin admin);
    //
    void updateStatus(Integer status,Integer id);
    //根据名字登录
    Admin selectOne(String username);
}
